You've learned about all
the different backend types. The global https load balancer, can
help you integrate multiple of them into one domain with host and
path based routing. If you recall this diagram from earlier in
the module, the URL map matches paths or hosts in the request, to send traffic
to different backend services. This is a simplified example. Let's expand the model to include
all features of the URL map. There are multiple parts in the URL
you can use to match a route on. The first is the host name, the second is the path optionally
including a wildcard suffix. If you use the suffix, you can only have
the wildcard at the end of the path, and it always has to start with a slash. In most web frameworks, you have more
flexible path routing options available. You can also use the host to match, and
then the path match are below that. You can specify defaults
on the host matcher, and on the level of the path matches. This is how you can combine different
cloud run services with a bucket to host static assets. And even forward certain request to
a service running on premises in your data center. In this example you see that requests
using different suffixes, for example, order or images are routed to different
and separate backend services, to serve that request. URL masks are an optional
feature that make it easier to configure Serverless NEGs. When your application consists of
multiple Cloud Run, cloud functions or app engine services. A serverless NEG backend can point
to either a single Cloud Run, or app engine, or cloud functions service. Like the example on the left, or a URL mask that points to multiple
services like the example on the right. A URL mask is a template
of your URL schemer. The serverless NEG uses this template,
for example service, to extract the service name from
the incoming request URL, and map the request to
the appropriate service. With a URL mask, instead of creating
a separate Serverless NEG backend for each Cloud Run, app engine,
or cloud function service. You can create a single Serverless NEG
with a generic URL mask for the custom domain. For example, example.com/service and
allow the NEG to extract the service name from the request URL, and route it
to the appropriate Cloud Run service. In this module, you learned about how to integrate the
global https load balancer with Cloud Run. The https load balancer requires
additional infrastructure and a fixed cost to have it enabled,
and it unlocks additional benefits. Cloud CDN lets you serve cacheable
content closer to the user. You can combine multiple backend
services on the same domain with path based routing. URL masks in the Serverless NEG, allow you
to route requests a different Cloud Run services, without creating
multiple backend services. Cloud Run services are regional, and multi regional load balancing routes
request to the closest region. If you combine that with a multi regional
database like spanner, your app has low end user latency and higher availability
than a single region deployment. And there's another product you can put in
front of Cloud Run using the global https load balancer, google cloud armor. But that's a topic for another module.